package com.课上案例练习.线程.创建线程;

/**
 * 第一种方法创建
 *
 *
       去继承Thread类
 *
 */
public class Test1 {
    public static void main(String[] args) {
        Thread1 thread1 = new Thread1();
        thread1.start();
    }
}
class Thread1 extends Thread{
    @Override
    public void run() {
        System.out.println("你好啊");
    }
}